pacman::p_load(sf, spatstat, raster, tidyverse, tmap)also installing the dependencies 'deldir', 'polyclip', 'spatstat.sparse', 'goftest', 'tensor', 'spatstat.data', 'spatstat.univar', 'spatstat.geom', 'spatstat.random', 'spatstat.explore', 'spatstat.model', 'spatstat.linnet', 'spatstat.utils'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.4:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.4/PACKAGES'
package 'deldir' successfully unpacked and MD5 sums checked
package 'polyclip' successfully unpacked and MD5 sums checked
package 'spatstat.sparse' successfully unpacked and MD5 sums checked
package 'goftest' successfully unpacked and MD5 sums checked
package 'tensor' successfully unpacked and MD5 sums checked
package 'spatstat.data' successfully unpacked and MD5 sums checked
package 'spatstat.univar' successfully unpacked and MD5 sums checked
package 'spatstat.geom' successfully unpacked and MD5 sums checked
package 'spatstat.random' successfully unpacked and MD5 sums checked
package 'spatstat.explore' successfully unpacked and MD5 sums checked
package 'spatstat.model' successfully unpacked and MD5 sums checked
package 'spatstat.linnet' successfully unpacked and MD5 sums checked
package 'spatstat.utils' successfully unpacked and MD5 sums checked
package 'spatstat' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\dexto\AppData\Local\Temp\RtmpELdYLR\downloaded_packages
spatstat installed
childcare_sf = st_read("data/child-care-services-geojson.geojson") %>%
st_transform(crs = 3414)Reading layer `child-care-services-geojson' from data source
`C:\0SMU\IS415-GAA\Hands-on_Ex\Hands-on_Ex03\data\child-care-services-geojson.geojson'
using driver `GeoJSON'
Simple feature collection with 1545 features and 2 fields
Geometry type: POINT
Dimension: XYZ
Bounding box: xmin: 103.6824 ymin: 1.248403 xmax: 103.9897 ymax: 1.462134
z_range: zmin: 0 zmax: 0
Geodetic CRS: WGS 84
mpsz_sf = st_read(dsn = "data", layer = "MP14_SUBZONE_WEB_PL")Reading layer `MP14_SUBZONE_WEB_PL' from data source
`C:\0SMU\IS415-GAA\Hands-on_Ex\Hands-on_Ex03\data' using driver `ESRI Shapefile'
Simple feature collection with 323 features and 15 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: 2667.538 ymin: 15748.72 xmax: 56396.44 ymax: 50256.33
Projected CRS: SVY21
sg_sf = st_read(dsn = "data", layer = "CostalOutline")Reading layer `CostalOutline' from data source
`C:\0SMU\IS415-GAA\Hands-on_Ex\Hands-on_Ex03\data' using driver `ESRI Shapefile'
Simple feature collection with 60 features and 4 fields
Geometry type: POLYGON
Dimension: XY
Bounding box: xmin: 2663.926 ymin: 16357.98 xmax: 56047.79 ymax: 50244.03
Projected CRS: SVY21
































